const {
	http
} = uni.$u

// 提交登录
export const postLogin = (params, config = {}) => http.post('loginNotCaptcha', params, config);
// 登录密码加密
export const getEncode = (params) => http.get('app/api/encode', params);
// 用户详情-个人中心
export const getUserInfo = (params) => http.get('app/getInfo', params);
// 发送验证码
export const sendCode = (params, config = {}) => http.post('api/short/message', params, config);
// 验证码检测
export const checkCode = (params) => http.get('api/short/message/checkShortMessage', params);
// 更新密码 这个文档给的 post 实际 get
// export const savePwd = (params, config = {}) => http.post('smzgl/api/ryxx/updateUserPassword', params, config);
export const savePwd = (params, config = {}) => http.get('smzgl/api/ryxx/updateUserPassword', params, config);
// 关于我们
export const getAbout = (params) => http.get('app/aboutus', params);
// 考勤查询 - 首页
export const getPsatd = (params) => http.get('app/psatd', params);
// 考勤 当日
export const getNowAd = (params) => http.get('app/ad', params);
// 工资发放情况
export const homeWages = (params) => http.get('app/personalSalary', params);
// 附件list
export const fileList = (params) => http.get('core/attach/list', params);
// 人员详情
export const getStaff = (params) => http.get('app/staffs/' + params.id, params);
// 根据业务id查看人员信息表原始数据
export const getStaffOriginalInfo = (params) => http.get('smzgl/ryxx/' + params.id, params);
// 字典 - 没用
export const getDict = (params) => http.get('system/dict/data/type/xmtype', params);
// 字典单查
export const getDictInfo = (params) => http.get('app/dictTran', params);
// 考勤日历
export const getDate = (params) => http.get('app/dailyATD', params);
// 附件上传
// export const upload = (params, config = {}) => http.upload('core/attach/uploadAttach', params, config);
export const upload = (params, config = {}) => http.upload('core/uploadAttach', params, config);
// 附件列表
export const getFileList = (params) => http.get('core/attach/list', params);
// 业务类型附件列表
export const getYwFileList = (params) => http.get('core/fjpz/list', params);
// 查看附件
export const getFileInfo = (params) => http.get('core/attach/list', params);

// 所属区域
export const getNation = (params) => http.get('app/nation', params);
// 登录用户信息
export const getUser = (params) => http.get('core/deptMx/getSysUser', params);

// 业务附件
export const getNewFile = (params) => http.get('app/atta', params);
// 培训统计
export const getAppto = (params) => http.get('app/to', params);
// 培训列表
export const getTrains = (params) => http.get('app/trains', params);
// 培训详情 -- 项目端
export const trainsBy = (params) => http.get('app/trainsBy', params);

// 信用列表
export const getPercerList = (params) => http.get('app/percer', params);



// 班组详情
export const cpgGo = (params) => http.get('app/go', params);
// 企业详情
export const deptDetail = (params) => http.get('app/deptDetail/' + params.id, params);

// 考勤打卡
export const getDkDate = (params) => http.get('kqgl/AtdRuleDetail/getDkDate', params);

// 补卡记录 -- 改了的
export const rykqBkList = (params) => http.get('app/rykqBk/listMap', params);
// 新增补卡 - 改
export const rykqBk = (params, config = {}) => http.post('app/rykqBk/addSubmit', params, config);
// 进出场明细
export const makeUpCard = (params, config = {}) => http.post('app/makeUpCard', params, config);

// 范围展示
export const fangwei = (params) => http.get('kqfwgl/list', params);

// 静态对比 auth
export const getDetectLiveFaceAuth = (params, config = {}) => http.post('api/tencent/getDetectLiveFaceAuth', params,config);
// 业务编号获取
export const getBid = (params) => http.get('app/getBid', params);
// 上传打卡图片后 调用
export const appClockOnImg = (params) => http.get('app/appClockOnImg', params);
// 打卡成功
export const appClockOn = (params, config = {}) => http.post('app/appClockOn', params, config);
// 打卡范围检测
export const checkDkfw = (params) => http.get('kqfwgl/checkDkfw/' + params.jw, params);

// 获取腾讯OCR签名接口
export const getOcrAuth = (params, config = {}) => http.post('api/tencent/getOcrAuth', params, config);
// 比对签名
export const getIaiAuth = (params, config = {}) => http.post('api/tencent/getIaiAuth', params, config);

// 新增补卡详情
export const rykqBkInfo = (params) => http.get('app/rykqBk/' + params.id, params);

// 新加的
export const listMap = (params) => http.get('app/rykqBk/listMap', params);

// 个人中心的实名认证
export const addHaveRyxxSmrz = (params, config) => http.post('app/addHaveRyxxSmrz', params, config)